console
目的 Purpose
Starts an instance of the Swing graphical Groovy console with an initialized Grails runtime.使用例 Examples
grails console
詳細 Description
Starts the Grails console, which is an extended version of the regular Groovy console. There are a couple of useful variables registered in the binding:
ctx
- The Spring ApplicationContext instancegrailsApplication
- The GrailsApplication instance
Usage:
grails [environment]* console
Fired Events:
StatusFinal
- When the console is loaded